﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace MarginTrading.Entity
{
    public class DailyTransactions
    {
        #region public methods
        /// <summary>
        /// default constructor of DailyTransactions. 
        /// </summary>
        public DailyTransactions()
        {
            this.TradeDate = DateTime.MinValue;
            this.BuySell = string.Empty;
            this.ExecutionId = string.Empty;
            this.CompanySymbol = string.Empty;
            this.Quantity = 0;
            this.Price = 0;
            this.TaxFlag = 0;
            this.BrokerIdBuy = string.Empty;
            this.BrokerIdSell = string.Empty;
            this.BuyingContractNo = 0;
            this.SellingContractNo = 0;
            this.ClientCode = string.Empty;
            this.ParticipantId = string.Empty;
            this.ForeignFlag = 0;
            this.Amount = 0;
            this.OrderId = string.Empty;
            this.TranId = string.Empty;
            this.Status = 0;
            this.SettleDate = DateTime.MinValue;
            this.SettleStatus = "";
        }

        #endregion


        #region property

        public DateTime TradeDate { get; set; }
        public string BuySell { get; set; }
        public string ExecutionId { get; set; }
        public string CompanySymbol { get; set; }
        public int Quantity { get; set; }
        public double Price { get; set; }
        public int TaxFlag { get; set; }
        public string BrokerIdBuy { get; set; }
        public string BrokerIdSell { get; set; }
        public int BuyingContractNo { get; set; }
        public int SellingContractNo { get; set; }
        public string ClientCode { get; set; }
        public string ParticipantId { get; set; }
        public int ForeignFlag { get; set; }
        public double Amount { get; set; }
        public string OrderId { get; set; }
        public string TranId { get; set; }
        public int Status { get; set; }
        public DateTime SettleDate { get; set; }
        public string SettleStatus { get; set; }

        #endregion
    }

    public class DailyTransactionsCollection : Collection<DailyTransactions>
    {
        public DailyTransactionsCollection()
        {
        }
    }
}
